<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page import="com.nankang.framework.util.StringUtil" %>
<%@ page import="com.nankang.realestate.zhyw.cyzt.vo.DevelopCompanyVO" %>
<%@ page import="com.nankang.realestate.zhyw.cyzt.bo.HumansearchBO" %>
<%@ page import="com.nankang.realestate.zhyw.cyzt.vo.DevelopCompanyEmployeeVO" %>
<%
    response.setHeader("Pragma", "No-cache");
    response.setHeader("Cache-Control", "no-cache");
    response.setDateHeader("Expires", 0);
%>
<%
    DevelopCompanyVO cvo = (DevelopCompanyVO) session.getAttribute("DevelopCompanyVO");
    String employeeID = StringUtil.format(session.getAttribute("EmployeeID"));
    String userName = "";

    if (cvo == null && (employeeID == null || "".equals(employeeID))) {
        out.println("<script language='javascript'>");
        out.println("alert('用户会话错误，请重新登录！');window.close();");
        out.println("</script>");
        return;
    }

    //开发企业用户名
    if (employeeID == null || "".equals(employeeID)) {
        String devCompanyName = StringUtil.format(cvo.getDevCompanyName());
        userName = devCompanyName;
    } else {//销售人员用户名
        HumansearchBO bo = new HumansearchBO();
        DevelopCompanyEmployeeVO evo = new DevelopCompanyEmployeeVO();
        evo.setEmployeeID(Long.parseLong(employeeID));
        evo = (DevelopCompanyEmployeeVO) bo.find(evo);
        String employeeName = StringUtil.format(evo.getEmployeeName());
        userName = employeeName;
    }
%>
<html>
<head>
    <title>欢迎您：<%=userName %>
    </title>
    <script src="" type="text/javascript"></script>
</head>
<FRAMESET name=frame border=0 frameSpacing=0 cols=* frameBorder=NO rows="26,*,0">
    <FRAME name=topFrame marginWidth=0 marginHeight=0 src="BeiAnTop.jsp" noResize scrolling=no>
    <frameset name="mainFrame" border="0" framespacing="0" frameborder="NO" cols="150,*" rows=*>
        <FRAME src="" name=leftFrame frameborder="no" scrolling=no noresize marginWidth=0 marginHeight=0>
        <FRAME name=rightFrame marginWidth=0 marginHeight=0 src="" noResize scrolling=auto>
    </FRAMESET>
    <frame name="bottomFrame" marginWidth="0" marginHeight="0" noResize scrolling="no" src="bottom.html"/>
</FRAMESET>
<noframes></noframes>
</HTML>

<iframe width=100 height=0></iframe>
